<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="allot-id"></th>
            <th>调拨单号</th>
            <th>调入仓库</th>
            <th>审批状态</th>
            <th>调拨状态</th>
            <th>调拨日期</th>
            <th>出库日期</th>
            <th>完成日期</th>
            <th>物流商</th>
            <th>追踪号</th>
            <th>物流费用</th>
            <th>申请人</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td>
                    {if $item->getData('status') != $status_cancel}
                    <input type="checkbox" class="allot-id" name="allot_id[]" value="{$item.allot_id}">
                    {/if}
                </td>
                <td class="copy-text">{$item.allot_sn}</td>
                <td>{$item.win.name}</td>
                <td>{$item.check_status}</td>
                <td>{$item.status}</td>
                <td>{$item.allot_date}</td>
                <td>{$item.out_date}</td>
                <td>{$item.finish_date}</td>
                <td>{$item.logistics_name}</td>
                <td class="copy-text">{$item.track_num}</td>
                <td>{$item.logistics_price|abs}</td>
                <td>{$item.user.nickname}</td>
                <td class="text-left">{$item.remark}</td>
                <td class="text-left">
                    <a class="layui-btn layui-btn-xs layui-btn-normal ajax-form" width-form="80%" height-form="80%" href="{:url('info', ['allot_id'=>$item['allot_id']])}" title="调拨详情">查看</a>
                    {if $item->getData('status') != $status_cancel}
                        {if $is_show_check && \app\common\model\JobFlowModule::isCheckIng($item)}
                        <a class="layui-btn layui-btn-xs check-job-flow" item="{$item.allot_id}">审批</a>
                        {/if}
                        <a href="{:url('add', ['allot_id' => $item['allot_id']])}" title="更新追踪号" class="layui-btn ajax-form layui-btn-xs layui-btn-warm">更新追踪号</a>
                    {/if}
                    {if !empty($item.track_info) && $item->getData('track_status') != $track_status_none}
                    <a href="{:url('tinfo',['allot_id'=>$item['allot_id']])}" title="物流信息" width-form="60%" height-form="60%" class="layui-btn layui-btn-xs layui-bg-green ajax-form">查看物流</a>
                    {/if}
                    {if $item->getData('status') == $status_wait}
                    <a href="{:url('save', ['allot_id' => $item['allot_id'], 'status' => $status_cancel])}" title="取消" confirm="1" class="layui-btn ajax-get layui-btn-xs layui-bg-cyan">取消</a>
                    {/if}
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="14">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>